/**
 * Created with Intellij IDEA.
 * Description;
 * User:墨琦
 * Data:2023-03-26
 * Time:21:04
 */
public class Animal {
    protected String name;
    public Animal(String name) {
        this.name = name;
    }
    public void sleep(String food) {
        System.out.println("我是一只小动物");
        System.out.println(this.name + "正在吃" + food);
    }
}
